package com.bianguo.android.apushdemo.presenter.impl;

import java.lang.ref.Reference;

/**
 * Created by Administrator on 2017/8/14.
 */

public abstract class BasePresenter<T> {

    protected Reference<T> mReferenceView;//指的是界面，也就是BaseFragment或者BaseActivity

    public T mView;

    public void attach(T mView) {
        this.mView = mView;
    }

    public void detach() {
        mView = null;
    }

    public void onResume(){}
}
